package com.star.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.star.model.MessageModel;

public interface MessageDao {

	@Insert("insert into t_message (uid,plId,newsId,message,fromId,toId,gmt_create,gmt_modified) values(#{uid},#{plId},#{newsId},#{message},#{fromId},#{toId},now(),now())")
	public void insertMessage(MessageModel model);

	@Select("select * from t_message where newsId=#{newsId}")
	public List<MessageModel> queryMessageModel(Integer newsId);
}
